package com.ontheroad.qiniu.service;

import org.springframework.remoting.service.annotation.RemoteService;

import java.io.InputStream;

@RemoteService
public interface FileService {

    /**
     * 数据流上传文件
     *
     * @param inputStream
     * @return
     */
    String upload(InputStream inputStream);

    /**
     * 字节数组上传文件
     *
     * @param bytes
     * @return
     */
    String upload(byte[] bytes);
}
